package loggingtraining;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;
import org.apache.log4j.xml.DOMConfigurator;

public class Main {
    static Logger logger = Logger.getLogger(Main.class);

    public static void main(String[] args) {
        DOMConfigurator.configure("src/main/resources/log4j.xml");
        //PropertyConfigurator.configure("src/main/resources/log4j.properties");
        //BasicConfigurator.configure();
        logger.debug("logging started");
        logger.info("info started");
    }
}
